package com.md.facade;

import com.md.api.SystemUsersApi;
import com.md.application.service.SystemUsersApplicationService;
import com.md.config.Logs;
import com.md.model.system.CommonResult;
import com.md.request.RegisterSystemUserRequest;
import com.md.response.SystemUsersResponse;
import com.md.value.enums.OperationEnum;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘骄阳
 * 2024-07-14 22:16
 */
@RestController
@RequiredArgsConstructor
public class SystemUsersController implements SystemUsersApi {
  private final SystemUsersApplicationService systemUsersApplicationService;

  @Override
  @Logs(title = "注册用户-系统", operation = OperationEnum.INSERT)
  public CommonResult<SystemUsersResponse> register(final RegisterSystemUserRequest request) {
    return systemUsersApplicationService.register(request);
  }

}
